<%-- 
    Document   : Change_Password_Candidate
    Created on : Aug 30, 2013, 11:02:50 PM
    Author     : 4410s
--%>

<%@page import="java.sql.ResultSet"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Change Password Candidate Page</title>
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <style type="text/css">
            table.styletable{
                font-family: verdana,Times New Roman,sans-serif;
                font-size:11px;
                width: 100%;
                color:black;
                border-width: 1px;

            }
            table.styletable td {
                background:#ff99ff;
                border-width: 1px;
                padding: 8px;

            }
        </style>
        <script>
            function CheckpassCandidate()
            {
                if (ChangePassCandidate.txt_password.value === "") {
                    alert(' Password can not be empty ');
                    ChangePassCandidate.txt_password.focus();
                    return false;
                }
                else if (ChangePassCandidate.txt_newpassword.value === "") {
                    alert(' Password New can not be empty ');
                    ChangePassCandidate.txt_newpassword.focus();
                    return false;
                }
                else if (ChangePassCandidate.txt_confirmnewpassword.value === "") {
                    alert('  Confirm Password New can not be empty ');
                    ChangePassCandidate.txt_confirmnewpassword.focus();
                    return false;
                }
                else if (ChangePassCandidate.txt_confirmnewpassword.value !== ChangePassCandidate.txt_newpassword.value) {
                    alert('  Confirm Password New Incorrect');
                    ChangePassCandidate.txt_confirmnewpassword.focus();
                    return false;
                }
                return true;
            }
        </script>
    </head>
    <body id="changepassCandidate">
        <div align="center">
            <div align="center" style="height: auto; width: 800px">
                <jsp:include page="master.jsp" flush="true"/>
            </div>
            <div align="left" style="height: auto; width: 800px">
                <form action="Change_Password_candidate" id="frmchangepasscandidate" name="ChangePassCandidate" method="POST">
                    <table border="0" class="styletable">
                        <tbody>
                            <tr>
                                <td align="left">UserName :</td>
                                <td><input class="gwt-TextBox" align="left"  type="text" name="txt_username" value="<%out.println(request.getSession().getAttribute("login").toString());%>" readonly="readonly"/></td>
                            </tr>
                            <tr>
                                <td align="left">Password :</td>
                                <td><input type="password" align="left" class="gwt-TextBox" name="txt_password" value="" /></td>
                            </tr>
                            <tr>
                                <td align="left">New Password :</td>
                                <td><input type="password" align="left" class="gwt-TextBox" name="txt_newpassword" value="" /></td>
                            </tr>
                            <tr>
                                <td align="left">Confirm New Password :</td>
                                <td><input type="password" align="left" class="gwt-TextBox" name="txt_confirmnewpassword" value="" /></td>
                            </tr>
                            <tr>
                                <td align="right"><input type="submit" value="OK" class="gwt-Button" onclick="return CheckpassCandidate()" /></td>
                                <td align="left"><input type="reset" class="gwt-Button" value="Reset" /></td>
                            </tr>
                        </tbody>
                    </table>

                </form>
            </div>
    </body>
</html>
